import React from 'react';
import { Router, Route, Switch } from 'dva/router';
import routeConfig from './routeConfig';
import {renderRoutes} from './utils/route';
function RouterConfig({ history,app }) {
  return (
    <Router history={history}>
      <Switch>
       {renderRoutes(routeConfig,app)}
      </Switch>
    </Router>
  );
}

export default RouterConfig;
